﻿@model ERPStore.Models.LoginModel
@{
	Layout = "~/views/shared/_layout.cshtml";
}

<div class="row">
<section id="loginForm" class="span6">
<h2>Use a local account to log in.</h2>
@using (Html.BeginForm(new { ReturnUrl = "/#/account" })) {
    @Html.AntiForgeryToken()
    @Html.ValidationSummary(true)

    <fieldset>
        <legend>Log in Form</legend>
		<p class="text-info">try demo/demo for connection</p>
        <ol>
            <li>
                @Html.LabelFor(m => m.UserName)
                @Html.TextBoxFor(m => m.UserName)
                @Html.ValidationMessageFor(m => m.UserName)
            </li>
            <li>
                @Html.LabelFor(m => m.Password)
                @Html.PasswordFor(m => m.Password)
                @Html.ValidationMessageFor(m => m.Password)
            </li>
            <li>
                @Html.CheckBoxFor(m => m.RememberMe)
                @Html.LabelFor(m => m.RememberMe, new { @class = "checkbox" })
            </li>
        </ol>
        <input type="submit" class="btn btn-success" value="Log in" />
    </fieldset>
    <p>
        @Html.ActionLink("Register", "Register") if you don't have an account.
    </p>
}
</section>

<section class="social span6" id="socialLoginForm">
    <h2>Use another service to log in.</h2>
    Html.Action("ExternalLoginsList", new { ReturnUrl = ViewBag.ReturnUrl })
</section>

</div>